package day0922.test;

/**
 * @Author Stringzhua
 * @Date 2024/9/22 13:53
 * description:
 */
public class Square {
    long width;

    public Square(long l) {
        width = l;
    }

    public static void main(String[] args) {
        Square a, b, c;
        a = new Square(42L);
        b = new Square(42L);
        c = b;
        long s = 42L;
        System.out.println(a == b);
//        System.out.println(s == a);
        System.out.println(b == c);
        System.out.println(a.equals(s));
    }
}
